package com.aspose.cells;

class zaz {
   private CellArea a;
   private byte[] b;
   private byte c;

   zaz(CellArea var1, boolean var2, byte[] var3) {
      this.a = var1;
      this.a(var2);
      this.b = var3;
   }

   zaz() {
   }

   void a(zaz var1, WorksheetCollection var2, WorksheetCollection var3) {
      this.c = var1.c;
      this.b = zyd.a(var2, var3, var1.b, -1, var1.a.StartRow, var1.a.EndRow);
      this.a = new CellArea();
      this.a.StartRow = var1.a.StartRow;
      this.a.StartColumn = var1.a.StartColumn;
      this.a.EndRow = var1.a.EndRow;
      this.a.EndColumn = var1.a.EndColumn;
   }

   CellArea a() {
      return this.a;
   }

   void a(CellArea var1) {
      this.a = var1;
   }

   boolean b() {
      return (this.c & 255 & 16) != 0;
   }

   void a(boolean var1) {
      if (var1) {
         this.c = (byte)(this.c | 16);
      } else {
         this.c = (byte)(this.c & 254);
      }

   }

   byte c() {
      return (byte)(this.c & 255 & 240);
   }

   void a(byte var1) {
      this.c = (byte)(this.c & 240);
      this.c |= var1;
   }

   byte[] d() {
      return this.b;
   }

   void a(byte[] var1) {
      this.b = var1;
   }

   void a(Worksheet var1, boolean var2, int var3, int var4, int var5, int var6) {
      if (var5 != 0) {
         boolean var7 = false;
         if (var2) {
            boolean[] var8 = new boolean[]{var7};
            this.a = zayd.a(this.a, var6, var5, var8);
            var7 = var8[0];
         }

         zyo.a(var1, var2, var6, var5, var3, var4, -1, this.b.length - 1, this.b);
      }
   }

   void a(Worksheet var1, boolean var2, CellArea var3, int var4, int var5, int var6, int var7, int var8, int var9) {
      if (var2) {
         switch(var5) {
         case 0:
            if (var3.StartRow <= this.a().StartRow) {
               if (var3.StartColumn <= this.a.StartColumn && var3.EndColumn >= this.a.EndColumn) {
                  this.a.StartRow += var4;
                  this.a.EndRow += var4;
               }
            } else if (var3.StartRow < this.a().EndRow) {
               ;
            }
         }
      }

      zyo.a(var3, var4, var5, var1, var2, this.b, -1, -1, var6, var7, var8, var9);
   }

   void b(Worksheet var1, boolean var2, int var3, int var4, int var5, int var6) {
      if (var5 != 0) {
         boolean var7 = false;
         if (var2) {
            boolean[] var8 = new boolean[]{var7};
            this.a = zayd.b(this.a, var6, var5, var8);
            var7 = var8[0];
         }

         zyo.c(var1, var2, var6, var5, var3, var4, -1, this.b.length - 1, this.b);
      }
   }

   void a(Worksheet var1, boolean var2, CellArea var3, int var4, int var5) {
      if (var2) {
         this.a.StartRow = var4;
         this.a.StartColumn = var5;
         this.a.EndRow = var4 + var3.EndRow - var3.StartRow;
         this.a.EndColumn = var5 + var3.EndColumn - var3.StartColumn;
      }

      zyo.a(var1.c(), var4, var4 - var3.StartRow, var3.StartRow, var5, var5 - var3.StartColumn, var3.StartColumn, this.b, -1, -1);
   }
}
